package com.example.monitor.repository;

import com.example.monitor.model.DO.Worker;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface WorkerRepository extends JpaRepository<Worker, String> {
    Optional<Worker> findByName(String name);
    
    Optional<Worker> findByPhone(String phone);

}
